import request from '@/utils/request'

// 查询换宿申请列表
export function listChangeApplication(query) {
  return request({
    url: '/system/changeApplication/list',
    method: 'get',
    params: query
  })
}

// 查询换宿申请详细
export function getChangeApplication(id) {
  return request({
    url: '/system/changeApplication/' + id,
    method: 'get'
  })
}

// 新增换宿申请
export function addChangeApplication(data) {
  return request({
    url: '/system/changeApplication',
    method: 'post',
    data: data
  })
}

// 修改换宿申请
export function updateChangeApplication(data) {
  return request({
    url: '/system/changeApplication',
    method: 'put',
    data: data
  })
}

// 删除换宿申请
export function delChangeApplication(id) {
  return request({
    url: '/system/changeApplication/' + id,
    method: 'delete'
  })
}
